import java.io.DataInput;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;

public class ClientPoint {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("localhost", 7766);
        Common.RequestC requestC = new Common.RequestC() {{
            setBody("first Request");
            setUrl_head("save");
            setCommand("POST");
        }};
        DataOutputStream out = new DataOutputStream(socket.getOutputStream());
               out.writeUTF(requestC.toTransString());

        DataInputStream in = new DataInputStream(socket.getInputStream());
        String s = in.readUTF();
        Common.debug(s);
    }
}
